<!doctype html><html lang=zh-cn data-theme=dark>
<head>
<meta charset=utf-8>
<meta name=viewport content="width=device-width">
<meta name=theme-color content="#222" media="(prefers-color-scheme: dark)">
<meta name=generator content="Hugo 0.92.2">
<link rel="shortcut icon" type=image/x-icon href=/imgs/icons/favicon.ico>
<link rel=icon type=image/x-icon href=/imgs/icons/favicon.ico>
<link rel=icon type=image/png sizes=16x16 href=/imgs/icons/favicon_16x16_next.png>
<link rel=icon type=image/png sizes=32x32 href=/imgs/icons/favicon_32_32_next.png>
<link rel=apple-touch-icon sizes=180x180 href=/imgs/icons/apple_touch_icon_next.png>
<meta itemprop=name content="烂笔头">
<meta itemprop=description content="保持简单的易用性和强大的功能。">
<meta itemprop=image content="https://dzmm.gitee.io/imgs/hugo_next_avatar.png">
<meta itemprop=keywords content="Hugo,NexT,主题,简单,强大">
<link type=text/css rel=stylesheet href=https://cdn.staticfile.org/font-awesome/6.1.2/css/all.min.css>
<link type=text/css rel=stylesheet href=https://cdn.staticfile.org/animate.css/3.1.1/animate.min.css>
<link type=text/css rel=stylesheet href=https://cdn.staticfile.org/viewerjs/1.11.0/viewer.min.css>
<link rel=stylesheet href=/css/main.min.659f2a18a0de6aa5054906011a584c8ff887591456aea225eabf98f2cfae91b7.css>
<style type=text/css>.post-footer,.flinks-list-footer hr:after{content:"~ 我可是有底线的哟 ~"}</style>
<script type=text/javascript>(function(){localDB={set:function(b,c,a){if(a===0)return;const d=new Date,e=a*864e5,f={value:c,expiry:d.getTime()+e};localStorage.setItem(b,JSON.stringify(f))},get:function(a){const b=localStorage.getItem(a);if(!b)return void 0;const c=JSON.parse(b),d=new Date;return d.getTime()>c.expiry?(localStorage.removeItem(a),void 0):c.value}},theme={active:function(){const a=localDB.get('theme');if(a==void 0)return;theme.toggle(a),window.matchMedia("(prefers-color-scheme: dark)").addListener(function(a){theme.toggle(a.matches?'dark':'light')})},toggle:function(a){document.documentElement.setAttribute('data-theme',a),localDB.set('theme',a,2);const b=document.querySelector('iframe.giscus-frame');if(b){const c={setConfig:{theme:a}};b.contentWindow.postMessage({giscus:c},'https://giscus.app')}}},theme.active()})(window)</script>
<script class=next-config data-name=page type=application/json>{"comments":false,"isHome":true,"isPage":false,"path":"dzmm.gitee.io","permalink":"https://dzmm.gitee.io/","title":"烂笔头","waline":{"js":[{"alias":"waline","alias_name":"@waline/client","file":"dist/pageview.js","name":"pageview","version":"2.13.0"},{"alias":"waline","alias_name":"@waline/client","file":"dist/comment.js","name":"comment","version":"2.13.0"}]}}</script>
<script type=text/javascript>document.addEventListener('DOMContentLoaded',()=>{var a=document.createElement('script');a.charset="UTF-8",a.src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js",a.async=!1,a.defer=!0,document.head.appendChild(a),a.onload=function(){NexT.utils.fmtBusuanzi()}})</script>
<title>烂笔头</title>
<noscript>
<link rel=stylesheet href=/css/noscript.css>
</noscript>
</head>
<body itemscope itemtype=http://schema.org/WebPage class=use-motion>
<div class=headband></div>
<main class=main>
<header class=header itemscope itemtype=http://schema.org/WPHeader>
<div class=header-inner>
<div class=site-brand-container>
<div class=site-nav-toggle>
<div class=toggle aria-label role=button>
<span class=toggle-line></span>
<span class=toggle-line></span>
<span class=toggle-line></span>
</div>
</div>
<div class=site-meta>
<a href=/ class=brand rel=start>
<i class=logo-line></i>
<h1 class=site-title>烂笔头</h1>
<i class=logo-line></i>
</a>
<p class=site-subtitle itemprop=description>为 Hugo 打造的主题</p>
</div>
<div class=site-nav-right>
<div class="toggle popup-trigger">
<i class="fa fa-search fa-fw fa-lg"></i>
</div>
</div>
</div>
<nav class=site-nav>
<ul class="main-menu menu">
<li class="menu-item menu-item-home">
<a href=/ class="hvr-icon-pulse menu-item-active" rel=section>
<i class="fa fa-home hvr-icon"></i>首页
</a>
</li>
<li class="menu-item menu-item-about">
<a href=/ class=hvr-icon-pulse rel=section>
<i class="fa fa-user hvr-icon"></i>关于
</a>
</li>
<li class="menu-item menu-item-flinks">
<a href=/ class=hvr-icon-pulse rel=section>
<i class="fa fa-thumbs-up hvr-icon"></i>站点示例
</a>
</li>
<li class="menu-item menu-item-archives">
<a href=/ class=hvr-icon-pulse rel=section>
<i class="fa fa-archive hvr-icon"></i>归档
<span class=badge>12</span>
</a>
</li>
<li class="menu-item menu-item-commonweal">
<a href=/404.html class=hvr-icon-pulse rel=section>
<i class="fa fa-heartbeat hvr-icon"></i>公益 404
</a>
</li>
<li class="menu-item menu-item-search">
<a role=button class="popup-trigger hvr-icon-pulse">
<i class="fa fa-search fa-fw hvr-icon"></i>搜索
</a>
</li>
</ul>
</nav>
<div class=search-pop-overlay>
<div class="popup search-popup">
<div class=search-header>
<span class=search-icon>
<i class="fa fa-search"></i>
</span>
<div class=search-input-container>
<input autocomplete=off autocapitalize=off maxlength=80 placeholder=搜索... spellcheck=false type=search class=search-input>
</div>
<span class=popup-btn-close role=button>
<i class="fa fa-times-circle"></i>
</span>
</div>
<div class="search-result-container no-result">
<div class=search-result-icon>
<i class="fa fa-spinner fa-pulse fa-5x"></i>
</div>
</div>
</div>
</div>
</div>
<div class="toggle sidebar-toggle" role=button>
<span class=toggle-line></span>
<span class=toggle-line></span>
<span class=toggle-line></span>
</div>
<aside class=sidebar>
<div class="sidebar-inner sidebar-overview-active">
<ul class=sidebar-nav>
<li class=sidebar-nav-toc>
文章目录
</li>
<li class=sidebar-nav-overview>
站点概览
</li>
</ul>
<div class=sidebar-panel-container>
<div class="post-toc-wrap sidebar-panel">
<div class="post-toc animated"></div>
</div>
<div class="site-overview-wrap sidebar-panel">
<div class="site-author site-overview-item animated" itemprop=author itemscope itemtype=http://schema.org/Person>
<img class=site-author-image itemprop=image alt="NexT 主题" src=/imgs/img-lazy-loading.gif data-src=/imgs/hugo_next_avatar.png>
<p class=site-author-name itemprop=name>NexT 主题</p>
<div class=site-description itemprop=description>保持简单的易用性和强大的功能。</div>
</div>
<div class="site-state-wrap site-overview-item animated">
<nav class=site-state>
<div class="site-state-item site-state-posts">
<a href=/archives/>
<span class=site-state-item-count>12</span>
<span class=site-state-item-name>日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href=/categories/>
<span class=site-state-item-count>8</span>
<span class=site-state-item-name>分类</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<a href=/tags/>
<span class=site-state-item-count>17</span>
<span class=site-state-item-name>标签</span>
</a>
</div>
</nav>
</div>
<div class="links-of-social site-overview-item animated">
<span class=links-of-social-item>
<a href=https://github.com/caoqing title="Github → https://github.com/caoqing" rel=noopener target=_blank>
Github
</a>
</span>
</div>
<div class="cc-license animated" itemprop=license>
<a href=https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh class=cc-opacity rel=noopener target=_blank title=共享知识>
<img src=/imgs/img-lazy-loading.gif data-src=/imgs/cc/big/by_nc_sa.svg alt=共享知识>
</a>
</div>
<div class="links-of-blogroll site-overview-item animated">
<div class=links-of-blogroll-title>
<i class="fa fa-globe fa-fw"></i>
友情链接
</div>
<ul class=links-of-blogroll-list>
<li class=links-of-blogroll-item>
<a href=https://gitee.com/hugo-next/hugo-theme-next title=https://gitee.com/hugo-next/hugo-theme-next target=_blank>Hugo-NexT</a>
</li>
<li class=links-of-blogroll-item>
<a href=https://lisenhui.cn title=https://lisenhui.cn target=_blank>凡梦星尘空间站</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id=siteinfo-card-widget class=sidebar-card-widget>
<div class=item-headline>
<i class="fas fa-chart-line"></i>
<span>网站资讯</span>
</div>
<div class=siteinfo>
<div class=siteinfo-item>
<div class=item-name><i class="fa-solid fa-calendar-check"></i>已运行：</div>
<div class=item-count id=runTimes data-publishdate=2022-06-02T11:52:03+08:00></div>
</div>
<div class=siteinfo-item>
<div class=item-name>
<i class="fas fa fa-user"></i>总访客数：
</div>
<div class=item-count id=busuanzi_value_site_uv><i class="fa fa-sync fa-spin"></i></div>
</div>
<div class=siteinfo-item>
<div class=item-name>
<i class="fas fa fa-eye"></i>页面浏览：
</div>
<div class=item-count id=busuanzi_value_site_pv><i class="fa fa-sync fa-spin"></i></div>
</div>
<div class=siteinfo-item>
<div class=item-name><i class="fa fa-font"></i>总字数：</div>
<div class=item-count id=wordsCount data-count=12210></div>
</div>
<div class=siteinfo-item>
<div class=item-name><i class="fa fa-mug-hot"></i>阅读约：</div>
<div class=item-count id=readTimes data-times=31></div>
</div>
<div class=siteinfo-item>
<div class=item-name><i class="fa fa-clock-rotate-left"></i>最后更新于：</div>
<div class=item-count id=last-push-date data-lastpushdate=2022-12-21T00:00:00+00:00></div>
</div>
</div>
</div>
</aside>
<div class=sidebar-dimmer></div>
</header>
<div class=tool-buttons>
<div id=toggle-theme class=button title=深浅模式切换>
<i class="fas fa-adjust"></i>
</div>
<div class=back-to-top role=button title=返回顶部>
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
</div>
<div class=reading-progress-bar></div>
<a role=button class="book-mark-link book-mark-link-fixed"></a>
<a href=https://github.com/hugo-next rel="noopener external nofollow noreferrer" target=_blank title="Follow me on GitHub" class="exturl github-corner"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0 0 115 115h15l12 27L250 250V0z"/><path d="M128.3 109C113.8 99.7 119 89.6 119 89.6 122 82.7 120.5 78.6 120.5 78.6 119.2 72 123.4 76.3 123.4 76.3 127.3 80.9 125.5 87.3 125.5 87.3 122.9 97.6 130.6 101.9 134.4 103.2" fill="currentcolor" style="transform-origin:130px 106px" class="octo-arm"/><path d="M115 115C114.9 115.1 118.7 116.5 119.8 115.4l13.9-13.8C136.9 99.2 139.9 98.4 142.2 98.6 133.8 88 127.5 74.4 143.8 58 148.5 53.4 154 51.2 159.7 51 160.3 49.4 163.2 43.6 171.4 40.1 171.4 40.1 176.1 42.5 178.8 56.2 183.1 58.6 187.2 61.8 190.9 65.4 194.5 69 197.7 73.2 200.1 77.6 213.8 80.2 216.3 84.9 216.3 84.9 212.7 93.1 206.9 96 205.4 96.6 205.1 102.4 203 107.8 198.3 112.5 181.9 128.9 168.3 122.5 157.7 114.1 157.9 116.9 156.7 120.9 152.7 124.9L141 136.5C139.8 137.7 141.6 141.9 141.8 141.8z" fill="currentcolor" class="octo-body"/></svg>
</a>
<noscript>
<div class=noscript-warning>Theme NexT works best with JavaScript enabled</div>
</noscript>
<div class="main-inner index posts-expand">
<div class=post-block>
<article itemscope itemtype=http://schema.org/Article class=post-content lang>
<link itemprop=mainEntityOfPage href=https://dzmm.gitee.io/post/hello-world.html>
<span hidden itemprop=author itemscope itemtype=http://schema.org/Person>
<meta itemprop=image content="/imgs/hugo_next_avatar.png">
<meta itemprop=name content="NexT 主题">
</span>
<span hidden itemprop=publisher itemscope itemtype=http://schema.org/Organization>
<meta itemprop=name content="NexT 主题">
<meta itemprop=description content="保持简单的易用性和强大的功能。">
</span>
<span hidden itemprop=post itemscope itemtype=http://schema.org/CreativeWork>
<meta itemprop=name content="世界，你好！">
<meta itemprop=description content="快速的描述下有关于 Hugo 建站的基本用法。">
</span>
<header class=post-header>
<h2 class=post-title itemprop="name headline">
<span class=post-sticky-flag title=置顶>
<i class="fa fa-thumbtack"></i>
</span>
<a href=/post/hello-world.html itemprop=url class=post-title-link>世界，你好！</a>
</h2>
<div class=post-meta-container>
<div class=post-meta-items>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-calendar"></i>
</span>
<span class=post-meta-item-text title=发表于>
发表于：
</span>
<time title="创建时间：2022-06-02 11:52:03 +0800 CST" itemprop="dateCreated datePublished" datetime="2022-06-02 11:52:03 +0800 CST">
2022-06-02
</time>
</span>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-calendar-check"></i>
</span>
<span class=post-meta-item-text title=更新于>
更新于：
</span>
<time title=修改时间：2022-06-03T16:43:23+08:00 itemprop=dateModified datetime=2022-06-03T16:43:23+08:00>2022-06-03</time>
</span>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-folder-open"></i>
</span>
<span class=post-meta-item-text title=分类于>
分类于：
</span>
<span itemprop=about itemscope itemtype=http://schema.org/Thing>
<a href=/categories/%E5%BC%80%E5%A7%8B%E5%BB%BA%E7%AB%99 itemprop=url rel=index>
<span itemprop=name>开始建站</span>
</a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body autonumber" itemprop=articleBody>
<blockquote>
<p>“使用 <code>weight</code> 关键字置顶文章。”</p>
</blockquote>
<p>
<a href=https://gohugo.io/ title=Hugo rel="noopener external nofollow noreferrer" target=_blank class=exturl>
Hugo
<i class="fa fa-external-link-alt"></i>
</a> 是现今世界上最快的网站建设框架，也是最流行的开源静态站点生成器之一。 凭借其惊人的速度和灵活性，Hugo 让建设网站再次变得有趣起来。</p>
</div>
<footer class=post-footer>
<div class=post-button>
<a class=btn href=/post/hello-world.html#more rel=contents>
阅读全文 &#187;
</a>
</div>
<div class=post-eof></div>
</footer>
</article>
</div>
<div class=post-block>
<article itemscope itemtype=http://schema.org/Article class=post-content lang>
<link itemprop=mainEntityOfPage href=https://dzmm.gitee.io/post/2022-12-21-mysqlyuju.html>
<span hidden itemprop=author itemscope itemtype=http://schema.org/Person>
<meta itemprop=image content="/imgs/hugo_next_avatar.png">
<meta itemprop=name content="NexT 主题">
</span>
<span hidden itemprop=publisher itemscope itemtype=http://schema.org/Organization>
<meta itemprop=name content="NexT 主题">
<meta itemprop=description content="保持简单的易用性和强大的功能。">
</span>
<span hidden itemprop=post itemscope itemtype=http://schema.org/CreativeWork>
<meta itemprop=name content="js和php做身份证正误判断">
<meta itemprop=description content="js和php做身份证正误判断">
</span>
<header class=post-header>
<h2 class=post-title itemprop="name headline">
<a href=/post/2022-12-21-mysqlyuju.html itemprop=url class=post-title-link>js和php做身份证正误判断</a>
</h2>
<div class=post-meta-container>
<div class=post-meta-items>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-calendar"></i>
</span>
<span class=post-meta-item-text title=发表于>
发表于：
</span>
<time title="创建时间：2022-12-21 00:00:00 +0000 UTC" itemprop="dateCreated datePublished" datetime="2022-12-21 00:00:00 +0000 UTC">
2022-12-21
</time>
</span>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-calendar-check"></i>
</span>
<span class=post-meta-item-text title=更新于>
更新于：
</span>
<time title=修改时间：2022-12-22T19:46:45+08:00 itemprop=dateModified datetime=2022-12-22T19:46:45+08:00>2022-12-22</time>
</span>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-folder-open"></i>
</span>
<span class=post-meta-item-text title=分类于>
分类于：
</span>
<span itemprop=about itemscope itemtype=http://schema.org/Thing>
<a href=/categories/php itemprop=url rel=index>
<span itemprop=name>php</span>
</a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body autonumber" itemprop=articleBody>
js身份证判断 /*身份证判断 用法 alert(testid(id).msg) */ function testid(id) { // 1 "验证通过!", 0 //校验不通过 // id为身份证号码 var format = /^(([1][1-5])|([2][1-3])|([3][1-7])|([4][1-6])|([5][0-4])|([6][1-5])|([7][1])|([8][1-2]))\d{4}(([1][9]\d{2})|([2]\d{3}))(([0][1-9])|([1][0-2]))(([0][1-9])|([1-2][0-9])|([3][0-1]))\d{3}[0-9xX]$/; //号码规则校验 if(id.length !=
</div>
<footer class=post-footer>
<div class=post-button>
<a class=btn href=/post/2022-12-21-mysqlyuju.html#more rel=contents>
阅读全文 &#187;
</a>
</div>
<div class=post-eof></div>
</footer>
</article>
</div>
<div class=post-block>
<article itemscope itemtype=http://schema.org/Article class=post-content lang>
<link itemprop=mainEntityOfPage href=https://dzmm.gitee.io/post/2022-12-21-mysqlyuju.html>
<span hidden itemprop=author itemscope itemtype=http://schema.org/Person>
<meta itemprop=image content="/imgs/hugo_next_avatar.png">
<meta itemprop=name content="NexT 主题">
</span>
<span hidden itemprop=publisher itemscope itemtype=http://schema.org/Organization>
<meta itemprop=name content="NexT 主题">
<meta itemprop=description content="保持简单的易用性和强大的功能。">
</span>
<span hidden itemprop=post itemscope itemtype=http://schema.org/CreativeWork>
<meta itemprop=name content="mySQl查询语句大全">
<meta itemprop=description content="mySQl查询语句大全">
</span>
<header class=post-header>
<h2 class=post-title itemprop="name headline">
<a href=/post/2022-12-21-mysqlyuju.html itemprop=url class=post-title-link>mySQl查询语句大全</a>
</h2>
<div class=post-meta-container>
<div class=post-meta-items>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-calendar"></i>
</span>
<span class=post-meta-item-text title=发表于>
发表于：
</span>
<time title="创建时间：2022-12-21 00:00:00 +0000 UTC" itemprop="dateCreated datePublished" datetime="2022-12-21 00:00:00 +0000 UTC">
2022-12-21
</time>
</span>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-calendar-check"></i>
</span>
<span class=post-meta-item-text title=更新于>
更新于：
</span>
<time title=修改时间：2022-12-22T19:46:45+08:00 itemprop=dateModified datetime=2022-12-22T19:46:45+08:00>2022-12-22</time>
</span>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-folder-open"></i>
</span>
<span class=post-meta-item-text title=分类于>
分类于：
</span>
<span itemprop=about itemscope itemtype=http://schema.org/Thing>
<a href=/categories/mysql itemprop=url rel=index>
<span itemprop=name>mysql</span>
</a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body autonumber" itemprop=articleBody>
综合使用 查询 目录： #----综合使用 书写顺序 select distinct * from '表名' where '限制条件' group by '分组依据' having
</div>
<footer class=post-footer>
<div class=post-button>
<a class=btn href=/post/2022-12-21-mysqlyuju.html#more rel=contents>
阅读全文 &#187;
</a>
</div>
<div class=post-eof></div>
</footer>
</article>
</div>
<div class=post-block>
<article itemscope itemtype=http://schema.org/Article class=post-content lang>
<link itemprop=mainEntityOfPage href=https://dzmm.gitee.io/post/custom-files.html>
<span hidden itemprop=author itemscope itemtype=http://schema.org/Person>
<meta itemprop=image content="/imgs/hugo_next_avatar.png">
<meta itemprop=name content="NexT 主题">
</span>
<span hidden itemprop=publisher itemscope itemtype=http://schema.org/Organization>
<meta itemprop=name content="NexT 主题">
<meta itemprop=description content="保持简单的易用性和强大的功能。">
</span>
<span hidden itemprop=post itemscope itemtype=http://schema.org/CreativeWork>
<meta itemprop=name content="支持用户自定义设计">
<meta itemprop=description content="用户可以通过自定义文件配置，实现对站点的样式和布局进行个性化的调整。">
</span>
<header class=post-header>
<h2 class=post-title itemprop="name headline">
<a href=/post/custom-files.html itemprop=url class=post-title-link>支持用户自定义设计</a>
</h2>
<div class=post-meta-container>
<div class=post-meta-items>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-calendar"></i>
</span>
<span class=post-meta-item-text title=发表于>
发表于：
</span>
<time title="创建时间：2022-09-10 21:02:32 +0800 CST" itemprop="dateCreated datePublished" datetime="2022-09-10 21:02:32 +0800 CST">
2022-09-10
</time>
</span>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-folder-open"></i>
</span>
<span class=post-meta-item-text title=分类于>
分类于：
</span>
<span itemprop=about itemscope itemtype=http://schema.org/Thing>
<a href=/categories/%E7%A4%BA%E4%BE%8B%E6%96%87%E7%AB%A0 itemprop=url rel=index>
<span itemprop=name>示例文章</span>
</a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body autonumber" itemprop=articleBody>
<p>对于熟悉前端开发的用户来说，可以通过自定义文件配置，实现对站点的样式和布局进行个性化的调整。其中布局方面主要是支持左侧边栏的站点概览部分，以及站点底部2个位置，但样式的重置可以是整个站点的任意位置。</p>
</div>
<footer class=post-footer>
<div class=post-button>
<a class=btn href=/post/custom-files.html#more rel=contents>
阅读全文 &#187;
</a>
</div>
<div class=post-eof></div>
</footer>
</article>
</div>
<div class=post-block>
<article itemscope itemtype=http://schema.org/Article class=post-content lang>
<link itemprop=mainEntityOfPage href=https://dzmm.gitee.io/post/emoji-support.html>
<span hidden itemprop=author itemscope itemtype=http://schema.org/Person>
<meta itemprop=image content="/imgs/hugo_next_avatar.png">
<meta itemprop=name content="NexT 主题">
</span>
<span hidden itemprop=publisher itemscope itemtype=http://schema.org/Organization>
<meta itemprop=name content="NexT 主题">
<meta itemprop=description content="保持简单的易用性和强大的功能。">
</span>
<span hidden itemprop=post itemscope itemtype=http://schema.org/CreativeWork>
<meta itemprop=name content="支持 Emoji 表情">
<meta itemprop=description content="Hugo 和 NexT 中的 Emoji 的用法指南。">
</span>
<header class=post-header>
<h2 class=post-title itemprop="name headline">
<a href=/post/emoji-support.html itemprop=url class=post-title-link>支持 Emoji 表情</a>
</h2>
<div class=post-meta-container>
<div class=post-meta-items>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-calendar"></i>
</span>
<span class=post-meta-item-text title=发表于>
发表于：
</span>
<time title="创建时间：2022-06-04 19:46:45 +0800 CST" itemprop="dateCreated datePublished" datetime="2022-06-04 19:46:45 +0800 CST">
2022-06-04
</time>
</span>
<span class=post-meta-item>
<span class=post-meta-item-icon>
<i class="far fa-folder-open"></i>
</span>
<span class=post-meta-item-text title=分类于>
分类于：
</span>
<span itemprop=about itemscope itemtype=http://schema.org/Thing>
<a href=/categories/%E8%AF%AD%E6%B3%95 itemprop=url rel=index>
<span itemprop=name>示例文章/语法</span>
</a>
</span>
</span>
</div>
</div>
</header>
<div class="post-body autonumber" itemprop=articleBody>
<p>Emoji 可以通过多种方式在 Hugo 项目中启用。</p>
<p>
<a href=https://gohugo.io/functions/emojify/ title="<code>emojify</code>" rel="noopener external nofollow noreferrer" target=_blank class=exturl>
<code>emojify</code>
<i class="fa fa-external-link-alt"></i>
</a> 方法可以直接在模板中调用, 或者使用
<a href=https://gohugo.io/templates/shortcode-templates#inline-shortcodes title="行内 Shortcodes" rel="noopener external nofollow noreferrer" target=_blank class=exturl>
行内 Shortcodes
<i class="fa fa-external-link-alt"></i>
</a>.</p>
<p>要全局使用 emoji, 需要在你的
<a href=https://gohugo.io/getting-started/configuration/ title=网站配置 rel="noopener external nofollow noreferrer" target=_blank class=exturl>
网站配置
<i class="fa fa-external-link-alt"></i>
</a>中设置 <code>enableEmoji</code> 为 <code>true</code>，
然后你就可以直接在文章中输入 emoji 的代码。</p>
</div>
<footer class=post-footer>
<div class=post-button>
<a class=btn href=/post/emoji-support.html#more rel=contents>
阅读全文 &#187;
</a>
</div>
<div class=post-eof></div>
</footer>
</article>
</div>
<nav class=pagination>
<span class="page-number current">1</span>
<a class=page-number href=/page/2/>2</a>
<a class=page-number href=/page/3/>3</a>
<a class="extend next" rel=next href=/page/2/>
<i class="fa fa-angle-right"></i>
</a>
</nav>
</div>
</main>
<footer class=footer>
<div class=footer-inner>
<div class=copyright>
&copy;
<span itemprop=copyrightYear>
2010 - 2023
</span>
<span class=with-love>
<i class="fa fa-heart"></i>
</span>
<span class=author itemprop=copyrightHolder>NexT 主题</span>
</div>
<div class=powered-by>
由 <a href=https://gohugo.io title=0.92.2 target=_blank>Hugo</a> & <a href=https://github.com/hugo-next/hugo-theme-next title=4.5.3 target=_blank>Hugo NexT.Gemini</a> 强力驱动
</div>
</div>
</footer>
<script type=text/javascript src=https://cdn.staticfile.org/animejs/3.2.1/anime.min.js defer></script>
<script type=text/javascript src=https://cdn.staticfile.org/viewerjs/1.11.0/viewer.min.js defer></script>
<script class=next-config data-name=main type=application/json>{"bookmark":{"color":"#222","enable":true,"save":"manual"},"copybtn":true,"darkmode":true,"giscus":{"cfg":{"category":"Comments","categoryid":null,"emit":false,"inputposition":"top","mapping":"title","reactions":false,"repo":"username/repo-name","repoid":null,"theme":"preferred_color_scheme"},"js":"https://giscus.app/client.js"},"hostname":"https://dzmm.gitee.io","i18n":{"ds_day":" 天前","ds_days":" 天 ","ds_hour":" 小时前","ds_hours":" 小时 ","ds_just":"刚刚","ds_min":" 分钟前","ds_mins":" 分钟","ds_month":" 个月前","ds_years":" 年 ","empty":"没有找到任何搜索结果：${query}","hits":"找到 ${hits} 个搜索结果","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","placeholder":"搜索..."},"lang":"zh-CN","lazyload":false,"localSearch":{"enable":true,"limit":1e3,"path":"/searchindexes.xml","preload":false,"topnperarticle":-1,"trigger":"auto","unescape":false},"motion":{"async":true,"enable":true,"transition":{"collheader":"fadeInLeft","postblock":"fadeIn","postbody":"fadeInDown","postheader":"fadeInDown","sidebar":"fadeInUp"}},"postmeta":{"comments":{"enable":false,"plugin":"waline"},"views":{"enable":true,"plugin":"busuanzi"}},"root":"/","scheme":"Gemini","sidebar":{"display":"post","offset":12,"padding":18,"position":"left","width":256},"vendor":{"plugins":"qiniu","router":"https://cdn.staticfile.org"},"version":"4.5.3","waline":{"cfg":{"emoji":false,"imguploader":false,"placeholder":"请文明发言哟 ヾ(≧▽≦*)o","reaction":true,"reactiontext":["点赞","踩一下","得意","不屑","尴尬","睡觉"],"reactiontitle":"你认为这篇文章怎么样？","requiredmeta":["nick","mail"],"serverurl":null,"sofa":"快来发表你的意见吧 (≧∀≦)ゞ","wordlimit":200},"css":{"alias":"waline","file":"dist/waline.css","name":"@waline/client","version":"2.13.0"},"js":{"alias":"waline","file":"dist/waline.js","name":"@waline/client","version":"2.13.0"}}}</script>
<script type=text/javascript src=/js/main.min.da1a84618d05ef38d3aaca7a8e93f6433f9bb147d8ffcc3a840de8a03dc5ff9f.js defer></script>
</body>
</html>